package com.dhcc.bpm.modules.content.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * @ClassName Notice
 * @Description  Notice实体类
 * @Author lijiacheng
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_notice")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Notice对象", description = "Notice对象")
public class Notice extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 公告标题
	*/
		@ApiModelProperty(value = "公告标题")
		private String title;
	/**
	* 公告内容
	*/
		@ApiModelProperty(value = "公告内容")
		private String content;
	/**
	* 公告日期
	*/
		@ApiModelProperty(value = "公告日期")
		private Date contentDate;
	/**
	* 备用
	*/
		@ApiModelProperty(value = "备用")
		private String spare1;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;

	/**
	 * 状态
	 */
	@ApiModelProperty(value = "状态")
	private Integer status;

	/**
	 * 公告开始日期
	 */
	@ApiModelProperty(value = "公告开始日期")
	private String startDate;

	/**
	 * 公告结束日期
	 */
	@ApiModelProperty(value = "公告结束日期")
	private String endDate;

	/**
	 * 产品ID
	 */
	@JsonSerialize(
			using = ToStringSerializer.class,
			nullsUsing = NullSerializer.class
	)
	@ApiModelProperty("产品ID")
	@TableField(value = "opc_product_id")
	private Long opcProductId;

	/**
	 * 是否通知机构
	 */
	@ApiModelProperty("是否通知机构")
	@TableField(value = "notice_type")
	private String noticeType;
}
